<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1.0" />
		<title>{$title}</title>
		<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
		<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
		<link rel="stylesheet" type="text/css" href="/Funny/public/css/comm.css">
		<script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script>
		<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
		<script type="text/javascript" src="/Funny/public/js/story.js"></script>
		<script type="text/javascript" src="/Funny/public/js/comm.js"></script>
	</head>
	<body>
		<div class="container">
			<div class="menu"></div>
			<div class="content">
				<div class="panel panel-success">
					<div class="panel-heading">
						<h3 class="panel-title">更新需求状态</h3>
					</div>
					<div class="panel-body">
						<form class="bs-example bs-example-form" role="form" action="ajaxDoUpdateStory">
							<div class="input-group">
								<span class="input-group-addon">需求ID</span>
								<input type="text" class="form-control" name="story_id" id="story_id" readonly="true" value="{$story.story_id}">
							</div>
							<br>
							<div class="input-group">
								<span class="input-group-addon">需求</span>
								<input type="text" class="form-control" name="story_title" id="story_title" readonly="true" value="{$story.story_title}">
							</div>
							<br>
							<div class="input-group">
								<span class="input-group-addon">完成状态</span>
								<select name="story_inline_status" id="story_inline_status" class="form-control">
									<option value="0" <?php echo $story[story_inline_status]==0? 'selected':'';?> >提测</option>
									<option value="1" <?php echo $story[story_inline_status]==1? 'selected':'';?> >交互测试中</option>
									<option value="2" <?php echo $story[story_inline_status]==2?'selected':'';?>>内测中</option>
									<option value="3" <?php echo $story[story_inline_status]==3?'selected':'';?>>外测中</option>
									<option value="4" <?php echo $story[story_inline_status]==4?'selected':'';?>>等待上线</option>
									<option value="5" <?php echo $story[story_inline_status]==5?'selected':'';?>>完成</option>
								</select>								
							</div>
							<br>
							<div class="input-group">
								<span class="input-group-addon">问题</span>
								<select name="story_bug_type" id="story_bug_type" class="form-control">
									<option value="2"<?php echo $story[story_bug_type]==2?'selected':'';?>>无</option>
									<option value="0"<?php echo $story[story_bug_type]==0?'selected':'';?>>有</option>
								</select>
							</div>
							<br>
							<div class="input-group">
								<span class="input-group-addon">补充</span>
								<input type="text" class="form-control" name="story_comments" id="story_comments" value="{$story.story_comments}">
							</div>
							<br>
							<button type="submit" class="btn" id="btn-update-story">更新</button>
						</form>				
					</div>
				</div>
			</div>
		</div>
	</body>
</html>